/**
 * Map Header Controller
 */

angular.module('NxtMap')
  .controller('BigScreenCtrl', ['$scope', '$state', 'MapService',  BigScreenCtrl]);

function BigScreenCtrl($scope, $state, MapService) {

  MapService.clearMap();
  // MapService.getTrack();
  $scope.goCase = function() {
    $state.go("analysis.case");
  }

  //刷新位置
  $scope.refreshPosition = function () {
    MapService.flyHome();
    // MapService.setPosition(viewer, 120.59501, 30.50114, 0.1, - Math.PI / 2);
  }
  
  $scope.legends = [
    {
      name: '其他警情事件',
      img: '/img/default.png',
    },
    {
      name: '电话诈骗',
      img: '/img/default.png',
    },
    {
      name: '网络诈骗',
      img: '/img/default.png',
    },
    {
      name: '机动车与机动车',
      img: '/img/default.png',
    },
    {
      name: '机动车与非机动车',
      img: '/img/default.png',
    },
    {
      name: '机动车与行人',
      img: '/img/default.png',
    },
    {
      name: '盗窃破坏事件',
      img: '/img/default.png',
    },

    {
      name: '盗窃事件',
      img: '/img/default.png',
    },
    {
      name: '杀人案',
      img: '/img/default.png',
    },
    {
      name: '抢劫案',
      img: '/img/default.png',
    },
    {
      name: '暴力事件',
      img: '/img/default.png',
    },
    {
      name: '偷窃汽车',
      img: '/img/default.png',
    },
    {
      name: '偷窃电动车',
      img: '/img/default.png',
    },
    {
      name: '偷窃自行车',
      img: '/img/default.png',
    }
  ];

  $scope.bars = [
    {
      name: 'square',
      img: 'img/point2.png',
      value: '方格',
    },
    {
      name: 'hexagon',
      img: 'img/point2.png',
      value: '六边形',
    },
    {
      name: 'cross',
      img: 'img/point2.png',
      value: '十字路口',
    },
    {
      name: 'police',
      img: 'img/point2.png',
      value: '派出所',
    },
    {
      name: 'heatmap',
      img: 'img/point2.png',
      value: '密度图',
    }
  ];

  $scope.times = ['日', '星', '月'];

}